package com.sirui.x.learnBoot.util;

import java.time.Instant;
import java.time.LocalDateTime;

public class LocalDateUtil {
    
    public static void main(String[] args) {

        System.out.println(Instant.now());
        System.out.println(LocalDateTime.now());
        
    }

    // 旧版， long -> date -> calendar   calendar -> date -> long
    // 新版   long -> Instant -> LocalDateTime
}
